<template>
  <div class="completion-edit">
    <el-input v-model="title" placeholder="点击获取地理位置信息" type="textarea" autosize @change="changeTitle"></el-input>
    <el-checkbox v-model="checked" class="isness" @change="changeNess">必答</el-checkbox>
    <el-button class="finish-edit" @click="finish">完成编辑</el-button>
  </div>
  
</template>

<script>
export default {
  name:'CompletionEdit',
  data(){
    return {

    }
  },
  props: {
    title: {
      type: String,
      default: '',
    },
    checked: {
      type: Boolean,
      default: true,
    },
  },
  methods: {
    changeTitle() {
      this.$emit('changeTitle',this.title)
    },

    changeNess() {
      this.$emit('changeNess', this.checked)
    },

    finish() {
      this.$emit('finish')
    },
  }
}
</script>

<style scoped src='assets/css/editcss/completionEdit.css'>
  /* @import url('../../css/completionEdit.css'); */
</style>
